package com.zhump.springcloud.netflix.provide.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/provide")
public class ProvideController {

    @Value("${server.port}")
    private  String serverPort;
    @RequestMapping("/hello")
    public String hello(){
        return "this is a netflix eureka provide:"+serverPort;
    }
}
